using System.ComponentModel.DataAnnotations;

namespace DeathReportManagement.Models;

public class OperationLog
{
    public int Id { get; set; }
    
    public int? ReportId { get; set; }
    
    [Required]
    [StringLength(100)]
    public string Operation { get; set; } = string.Empty;
    
    [Required]
    public int UserId { get; set; }
    
    public DateTime OperateTime { get; set; } = DateTime.Now;
    
    [StringLength(500)]
    public string? Remark { get; set; }
    
    public DeathReport? Report { get; set; }
    public User User { get; set; } = null!;
}